<?php
$malls = Mall::with('type')->order_by('updated_at', 'desc')->get();
$content = View::make('mall.list.content')->with('malls', $malls);
$css = array();
$script = array();
Asset::container('mall')->add('layout_css', 'css/backend_layout.css');
Asset::container('mall')->add('mall_css', 'css/mall/list.css');
$css[] = 'mall';
Asset::container('mall')->add('round_js', 'js/jquery.corner.js');
Asset::container('mall')->add('upload_js', 'js/jquery.fineuploader-3.0.min.js');
Asset::container('mall')->add('global_js', 'js/global.js');
Asset::container('mall')->add('layout_js', 'js/share/backend.js');
Asset::container('mall')->add('mall_js', 'js/mall/list.js');
$script[] = 'mall';
echo View::make('share.backend_layout')->with('active','mall')->with('content', $content)->with('css', $css)->with('script', $script)->with('title', '导航管理|' . Config::get('app.name', 'App'));
